#include <bits/stdc++.h>
using namespace std;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    int n;
    scanf("%d", &n);
    printf("1 %d 1 1\n", n - 3);
  }
}
